﻿<%@ Page Title="药品详细信息" Language="C#" MasterPageFile="~/Master/MasterPage_New.master"
    AutoEventWireup="true" CodeBehind="CompanyGoodsDetail_sc.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.ReportCompany.CompanyGoodsDetail_sc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                通用名：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProductName" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                剂型：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMedicinemodel" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                采购规格：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtPack" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                采购单位：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtUnit" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                排序字段：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="droSortField" runat="server" Height="19px" Width="112px">
                                    <asp:ListItem Value="PurchaseCount asc">采购数量 升序</asp:ListItem>
                                    <asp:ListItem Value="PurchaseCount desc">采购数量 降序</asp:ListItem>
                                    <asp:ListItem Value="DistributeCount asc">配送数量 升序</asp:ListItem>
                                    <asp:ListItem Value="DistributeCount desc">配送数量 降序</asp:ListItem>
                                    <asp:ListItem Value="WarehouseCount asc">入库数量 升序</asp:ListItem>
                                    <asp:ListItem Value="WarehouseCount desc">入库数量 降序</asp:ListItem>
                                    <asp:ListItem Value="PurchaseAmount asc">采购总金额 升序</asp:ListItem>
                                    <asp:ListItem Value="PurchaseAmount desc">采购总金额 降序</asp:ListItem>
                                    <asp:ListItem Value="WarehouseAmount asc">入库总金额 升序</asp:ListItem>
                                    <asp:ListItem Value="WarehouseAmount desc">入库总金额 降序</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="100px">
                    <asp:Button ID="btnQuery" runat="server" Text="查询" CssClass="searchbtn" SkinID="search"
                        ToolTip="点击查询符合条件的数据" OnClick="btnQuery_Click" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwDetail" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无有效的信息！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%# Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1)%></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="PurchaseCount" HeaderText="采购数量" />
            <asp:BoundField DataField="DistributeCount" HeaderText="配送数量" ReadOnly="True" />
            <asp:BoundField DataField="WarehouseCount" HeaderText="入库数量" ReadOnly="True" />
            <asp:BoundField DataField="PurchaseAmount" HeaderText="采购总金额" ReadOnly="True" />
            <asp:BoundField DataField="WarehouseAmount" HeaderText="入库总金额" ReadOnly="True" />
            <asp:BoundField DataField="OrderName" HeaderText="采购单名称" ReadOnly="True" />
            <asp:BoundField DataField="StartTime" HeaderText="开始时间" ReadOnly="True" />
            <asp:BoundField DataField="PlanEndTime" HeaderText="截止时间" ReadOnly="True" />
            <asp:BoundField DataField="ProductName" HeaderText="通用名" ReadOnly="True" />
            <asp:BoundField DataField="MedicineModelName" HeaderText="剂型" ReadOnly="True" />
            <asp:BoundField DataField="Pack" HeaderText="采购规格" ReadOnly="True" />
            <asp:BoundField DataField="Unit" HeaderText="采购单位" ReadOnly="True" />
            <asp:BoundField DataField="Price" HeaderText="采购单价（元）" ReadOnly="True" />
            <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" ReadOnly="True" />
            <asp:BoundField DataField="CompanyName_PS" HeaderText="配送企业" ReadOnly="True" />
            <asp:BoundField DataField="HospitalName" HeaderText="采购医院" ReadOnly="True" />
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>
